import moment from "moment";
export const isExpireToken = (time)=>{
    if(!time) return false;
    const nowTime = moment().valueOf();
    const beforeTime = parseInt(time);
    const interval = nowTime-beforeTime;
    const days = Math.floor(interval/(1000*3600*24));
    if(days>=1) {
        return true;
    }else {
        return false;
    }
}
